# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bing-ip2hosts
pkgver=1.0.5
pkgrel=1
groups=('blackarch' 'blackarch-recon')
pkgdesc='Enumerates all hostnames which Bing has indexed for a specific IP address.'
arch=('any')
url='https://github.com/urbanadventurer/bing-ip2hosts/'
license=('GPL3')
depends=('bash' 'wget' 'bind-tools')
source=("https://github.com/urbanadventurer/bing-ip2hosts/archive/v$pkgver.tar.gz")
sha512sums=('177d699152f42dcd4f7756b31db095c7f7728fc90680c54bc73d8485699739c6c2980705a4860bf4e93ce583b8a83faa03003d24185ac5a68da1a2b3f3c4537d')

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md CHANGELOG
  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

